# error code

# GENERAL
E_VALUE_NONE       = 1
E_KEY_NOT_EXIST    = 2
E_VALUE_TYPE_ERROR = 3
E_VALUE_IS_EMPTY   = 4
E_MYSQL_FAIL       = 5
E_DUP_OPERATION    = 6
E_DUP_CONTENT      = 7
E_METHOD_NOT_EXIST = 8
# USER
E_REGISTER_BASE64_DECODE_FAIL    = 10000
E_REGISTER_BASE64_STRING_INVALID = 10001
E_REGISTER_ALREADY_EXIST         = 10002
E_REGISTER_UNAME_LENGTH_ZERO     = 10003
E_REGISTER_UNAME_LENGTH_TOO_LONG = 10004
E_REGISTER_HIGH_FREQUENCY        = 10005

E_CHECKIN_USER_NOT_EXIST         = 10100
E_CHECKIN_BASE64_DECODE_FAIL     = 10101
E_CHECHIN_BASE64_STRING_INVALID  = 10102
E_CHECHIN_USER_NOT_EXIST         = 10103
E_CHECKIN_PASSWORD_FAIL          = 10104
E_CHECKIN_USER_FORBIDEN          = 10105

# ARTICLE
E_DATA_ACCESS_ERROR              = 20000
# DISCUSS
E_THREAD_REMOVED                 = 30000
# MESSAGE
E_SEND_TO_SELF                   = 40000
# COMMENT
E_COMMENT_REPLY_ZERO_LENGTH      = 50000

OP_ARTICLE_DING          = 1000
OP_ARTICLE_REPLY         = 1001
OP_DING_DISCUSS_COMMENT  = 1002
OP_REPLY_DISCUSS_COMMENT = 1003
OP_POST_DISCUSS_COMMENT  = 1004
OP_DING_JIONG_COMMENT    = 1005
OP_REPLY_JIONG_COMMENT   = 1006
OP_POST_JIONG_COMMENT    = 1007

# MESSAGE_TYPE
T_ARTICLE_COMMENT_DING  = 100000
T_ARTICLE_COMMENT_REPLY = 100001
T_DISCUSS_DING          = 100002
T_DISCUSS_COMMENT_DING  = 100003
T_DISCUSS_COMMENT_REPLY = 100004
T_DISCUSS_COMMENT       = 100005
T_JIONG_DING            = 100006
T_JIONG_COMMENT_DING    = 100007
T_JIONG_COMMENT_REPLY   = 100008
T_JIONG_COMMENT         = 100009
